package com.ssh.crm.web.action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.ssh.crm.domain.User;
import com.ssh.crm.service.UserService;

public class UserAction extends ActionSupport implements ModelDriven<User> {

    private User user=new User();

    public User getModel() {
        return this.user;
    }

    private UserService userService;

    public void setUserService(UserService userService){
        this.userService=userService;
    }

    public String regist(){
        userService.regist(user);
        return LOGIN;
    }
}
